export default {
  props: {
    autoLoad: {
      type: Boolean,
      default: true,
    },
    url: {
      type: String,
      default: "",
    },
    params: {
      type: Object,
      default() {
        return {};
      },
    },
    formatBefore: {
      type: Function,
      default: (params) => params,
    },
    resultKey: {
      type: String,
      default: "data",
    },
    totalKey: {
      type: String,
      default: "total",
    },
    formatAfter: {
      type: Function,
      default: (res) => res,
    },
    onError: {
      type: Function,
      default: (err) => {},
    },
    columns: {
      type: Array,
      default() {
        return [];
      },
    },
    rowKey: {
      type: String,
      require: true,
    },
    singleSelect: {
      type: Boolean,
      default: false,
    },
  },
};
